//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing.Diagram
{
    class CTCategory: IOfficeXmlSerializable
    {
        private int _pri;
        private string _type;

        public void ReadXml(ReadContext context)
        {
            using (var c = context.Read("cat"))
            {
                _type = c.GetString("type");
                _pri = c.GetInteger("pri");
            }

        }

        public void WriteXml(WriteContext context)
        {
            using (var c = context.Write("cat"))
            {
                c.SetString("type", _type);
                c.SetInteger("pri", _pri);
            }
        }
    }
}